import request from '@/utils/request'

// 查询东方财富概念板块列表
export function listIndex(query) {
  return request({
    url: '/dc/index/list',
    method: 'get',
    params: query
  })
}

// 查询东方财富概念板块详细
export function getIndex(id) {
  return request({
    url: '/dc/index/getById/' + id,
    method: 'get'
  })
}

// 新增东方财富概念板块
export function addIndex(data) {
  return request({
    url: '/dc/index/add',
    method: 'post',
    data: data
  })
}

// 修改东方财富概念板块
export function updateIndex(data) {
  return request({
    url: '/dc/index/update',
    method: 'put',
    data: data
  })
}

// 删除东方财富概念板块
export function delIndex(id) {
  return request({
    url: '/dc/index/delete/' + id,
    method: 'delete'
  })
}

// 导入东方财富概念板块
export function importIndex(data) {
    return request({
      url: '/dc/index/import',
      method: 'post',
      data: data
    })
}